package com.tsp_tux.demo.Dao;

import com.tsp_tux.demo.Entity.Subject_User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface Subject_userRepository extends JpaRepository<Subject_User, Integer> {
    Integer countBySid(Integer Sid);

    void deleteByUidAndSid(String uid, int sid);

    Subject_User save(Subject_User subject_user);

    List<Subject_User> findBySid(int sid);

    List<Subject_User> findByUidAndSid(String uid, int sid);

    List<Subject_User> findByUid(String uid);
}
